package com.demo.petshop.service.impl;

import com.demo.petshop.mapper.VideoTagsMapper;
import com.demo.petshop.util.Result;
import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.demo.petshop.entity.Videos;
import com.demo.petshop.mapper.VideosMapper;
import com.demo.petshop.service.VideosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import static com.demo.petshop.entity.table.VideoTagsTableDef.VIDEO_TAGS;

/**
 *  服务层实现。
 *
 * @author lenovo
 * @since 2025-06-09
 */
@Service
public class VideosServiceImpl extends ServiceImpl<VideosMapper, Videos> implements VideosService {

    @Autowired
    private VideosMapper videosMapper;

    @Autowired
    private VideoTagsMapper videoTagsMapper;

    @Override
    public Object categories() {
        return Result.success(videoTagsMapper.selectAll());
    }
}
